﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using ApplicationGenerator.CommonModule;

namespace ApplicationGenerator.CommonForms
{
    public class MappingsConverter : TypeConverter
    {
        public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
        {
            if (value != null && value is byte[] && destinationType == typeof(string))
            {
                return "Są mapowania";
            }

            return "Brak";
        }
    }
}
